package com.renjianbo.project.common.util;


import com.renjianbo.project.common.exception.BusinessException;
import com.renjianbo.project.common.exception.ParamException;
import com.renjianbo.project.common.exception.AuthorizationException;

public class ExceptionUtil {

    /**
     *  认证异常
     */
    public static void arithmeticException(String message) {
        throw new AuthorizationException(message);
    }

    /**
     *  业务异常
     */
    public static void businessException(String message) {
        throw new BusinessException(message);
    }

    /**
     *  参数校验异常
     */
    public static void paramException(String message) {
        throw new ParamException(message);
    }

}
